<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    </head>
    <body>
        <script type="text/javascript">
            /**
            * 监听图标按钮
            */
            function listenBrowserAction() {
                chrome.browserAction.onClicked.addListener(function (tab) {
                    chrome.tabs.create({
                        url: 'http://www.renren.com/?origin=92009',
                        active: true
                    });
                });
            }
	    
            listenBrowserAction();
        </script>
    </body>
</html>